Refactor ostree-prepare-root: Perform chdir to deploy directory earlier
authorWilliam Manley <will@williammanley.net>
Mon, 18 Jul 2016 17:09:10 +0000 (18:09 +0100)
committerAtomic Bot <atomic-devel@projectatomic.io>
Tue, 2 Aug 2016 19:07:25 +0000 (19:07 +0000)
commit83c0fdc3520fb8e3494fe915b86d8125c53509ae
tree7032d7ecd132621c56481b49ed2ea9e847bf3a94
parent47e7afab272721fdfa046aa22ee5260ce64d5541
Refactor ostree-prepare-root: Perform chdir to deploy directory earlier

...for simplicity.  This way we don't need to keep concatenating
deploy_path to everything.  We can just refer relative to the current
working directory.

We need to do this after bind-mounting it over itself otherwise our cwd
is still on the non-bind-mounted filesystem below.

Closes: #403
Approved by: cgwalters
src/switchroot/ostree-prepare-root.c